<%--
  Created by IntelliJ IDEA.
  User: root
  Date: 2020/4/1
  Time: 9:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>上传</title>
</head>
<body>

<!--
    上传文件时form表单要求：
    1 method ： post
    2 enctype:  multipart/form-data

 -->

<form action="${pageContext.request.contextPath}/upload_file"  method="post" enctype="multipart/form-data">

    上传文件1:<input type="file" name="myfile" /><br/>
<%--    上传文件1:<input type="text" name="myfile" /><br/>--%>
<%--    上传文件2:<input type="file" name="myfile" /><br/>--%>


    <input type="submit" value="上传"/>

    </forma>


</body>
</html>